#ifndef RTPRECEIVER_H
#define RTPRECEIVER_H

#endif // RTPRECEIVER_H

#pragma once
#include <QUdpSocket>
#include <QThread>
#include <QFile>

class RtpReceiver : public QThread {
    Q_OBJECT
public:
    explicit RtpReceiver(quint16 receivePort,  QString strSDP_SPS);

signals:
    void writefile(const QByteArray &nalu);


protected:
    void run() override;

private:
    quint16 m_receivePort; //接受RTP数据端口，需与SETUP响应一致
    QByteArray m_currentNalu;
    QString m_SDP_SPS;

};
